﻿<Window x:Class="WinBudget.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         xmlns:my3="clr-namespace:WinBudget"
        Title="WinBudget" Height="586" Width="887" Background="White" xmlns:my="http://schemas.microsoft.com/winfx/2006/xaml/presentation/ribbon" Icon="/WinBudget;component/budget.ico" xmlns:wizard="http://schemas.actiprosoftware.com/winfx/xaml/wizard" xmlns:datagrid="http://schemas.actiprosoftware.com/winfx/xaml/datagrid" xmlns:my1="clr-namespace:ActiproSoftware.Windows.Controls.ColorSelection.Primitives;assembly=ActiproSoftware.Shared.Wpf351" xmlns:my2="http://schemas.microsoft.com/wpf/2008/toolkit" xmlns:gauge="http://schemas.actiprosoftware.com/winfx/xaml/gauge" xmlns:shared="http://schemas.actiprosoftware.com/winfx/xaml/shared" xmlns:ribbon="http://schemas.actiprosoftware.com/winfx/xaml/ribbon" Loaded="Window_Loaded">
    <DockPanel Height="Auto" Name="primaryDockPanel" Width="Auto">
        <Menu Name="menu1" DockPanel.Dock="Top" Height="Auto">
            <MenuItem Header="File">
                <MenuItem Header="Account" Click="Account_Click" />
                <MenuItem Header="Expense Category" Click="ExpenseCategory_Click"/>
                <MenuItem Header="Exit" Click="Exit_Click" />
            </MenuItem>
            <MenuItem Header="Edit" />
            <MenuItem Header="View" />
            <MenuItem Header="Reports" />            
            <MenuItem Header="Tools">
                <MenuItem Header="Options" Click="Options_Click" />
            </MenuItem>
            <MenuItem Header="About" Click="About_Click" />
        </Menu>       
        <Grid Name="primaryGrid" DockPanel.Dock="Top" HorizontalAlignment="Stretch" VerticalAlignment="Top" Height="488" Width="861">
            <Label Content="Dashboard" Height="Auto" HorizontalAlignment="Stretch" Name="dashboardLabel" VerticalAlignment="Top" FontWeight="Bold" FontSize="22" Margin="254,0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" />
            <Separator Height="10" HorizontalAlignment="Stretch" Margin="12,29,0,0" Name="separator1" VerticalAlignment="Top" IsEnabled="True" Background="#FFA08B8B" BorderThickness="15,0,0,0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" />
            <Label Content="Accounts Summary" Height="28" HorizontalAlignment="Left" Margin="6,36,0,0" Name="accountSummaryLabel" VerticalAlignment="Top" FontSize="14" />
            <DataGrid ItemsSource="{Binding Path=Elements[Account]}"  AutoGenerateColumns="False" HorizontalAlignment="Left" Margin="6,70,0,0" Name="accountSummaryDG" Width="849" AlternatingRowBackground="#FF908C8C" AlternationCount="1" CanUserAddRows="False" CanUserDeleteRows="False" IsReadOnly="True" Height="82" VerticalAlignment="Top">
                <DataGrid.DataContext>
                    <XmlDataProvider x:Name="Accounts" Source="Accounts.xml" XPath="Accounts/Account" />
                </DataGrid.DataContext>
                <DataGrid.Columns>
                    <DataGridTemplateColumn Header="Add / Edit">
                        <DataGridTemplateColumn.CellTemplate>
                            <DataTemplate>
                                <Button Name="addeditBtn" Click="Add_Edit_Click">A/E</Button>
                            </DataTemplate>
                        </DataGridTemplateColumn.CellTemplate>
                    </DataGridTemplateColumn>
                    <DataGridTextColumn Header="Account Name" Binding="{Binding Path=Element[Account_Name].Value}" />
                    <DataGridTextColumn Header="Income" Binding="{Binding Path=Element[Income].Value}" />                    
                </DataGrid.Columns>
            </DataGrid>
            <Label Content="Expense Categories" FontSize="14" Height="28" HorizontalAlignment="Left" Margin="6,158,0,0" Name="expenseCategoriesLabel" VerticalAlignment="Top" />
            <DataGrid AutoGenerateColumns="True" Height="127" HorizontalAlignment="Left" Margin="6,192,0,0" Name="expenseCategoryDG" VerticalAlignment="Top" Width="849" />
        </Grid>
        <StatusBar Name="statusBar1" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" MinWidth="5" />        
    </DockPanel>
</Window>
